package com.xushimu.utils;


import java.text.SimpleDateFormat;
import java.util.Date;

/*日期转换类*/
public class DateStrUtils {
    private static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    public static String dateForStr(Date date){

        if (date==null){
            return null;
        }
        return format.format(date);
    }
}
